if (!Object.values) {
    Object.values = function(obj) {
        if (obj !== Object(obj)) throw new TypeError("Object.values called on a non-object");
        var val = [];
        var key;
        for (key in obj) {
            if (Object.prototype.hasOwnProperty.call(obj, key)) {
                val.push(obj[key]);
            }
        }
        return val;
    };
}